import { createApp } from 'vue'
import '@/styles/reset.scss'
import App from '@/App.vue'
import top from '@/components/top/index.vue'
import bottom from '@/components/bottom/index.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import pinia from '@/store/index'
import login from '@/components/login/index.vue'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import './permission'

const app = createApp(App)
app.component('Top', top)
app.component('Bottom', bottom)
app.component('Login', login)
app.use(router)
app.use(ElementPlus, {
    locale: zhCn,
})
app.use(pinia)
pinia.use(piniaPluginPersistedstate)

app.mount('#app')
